package com.fcscs.cservice.domain;

import java.math.BigDecimal;

import com.fcscs.core.domain.HistoricalEntity;
import com.fcscs.cservice.common.CServiceCommonEnums.PriceCategoryCodeEnum;

public class InRoomItemPrice extends HistoricalEntity {

	private static final long serialVersionUID = 1L;

	private long itemId;
	private PriceCategoryCodeEnum priceCategoryEnum;
	private BigDecimal price;
	private long versionId;

	@Override
	public DBLoc getDBLoc() {
		return DBLoc.GUEST;
	}

	public long getItemId() {
		return itemId;
	}

	public void setItemId(long itemId) {
		this.itemId = itemId;
	}

	public String getPriceCategory() {
		return this.priceCategoryEnum == null ? null : this.priceCategoryEnum.toString();
	}

	public void setPriceCategory(String priceCategory) {
		this.priceCategoryEnum = (priceCategory == null || "".equals(priceCategory.trim())) ? null
				: PriceCategoryCodeEnum.valueOf(priceCategory);
	}

	public PriceCategoryCodeEnum getPriceCategoryEnum() {
		return priceCategoryEnum;
	}

	public void setPriceCategoryEnum(PriceCategoryCodeEnum priceCategoryEnum) {
		this.priceCategoryEnum = priceCategoryEnum;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public long getVersionId() {
		return versionId;
	}

	public void setVersionId(long versionId) {
		this.versionId = versionId;
	}
}
